package com.ckg.bean.etds;

import com.ckg.bean.Vehicle;

public class Truck extends Vehicle {
    private double loadCapacity; // 载重属性（单位：吨）

    public Truck(String type, double loadCapacity) {
        super(type);
        this.loadCapacity = loadCapacity;
    }

    // 新增 getter 和 toString
    public double getLoadCapacity() {
        return loadCapacity;
    }

    @Override
    public String toString() {
        return super.toString() + ", loadCapacity=" + loadCapacity + "吨";
    }
}
